package service.impl;

import java.util.List;

import dao.OrderListDao;
import dao.impl.OrderListDaoImpl;
import entiey.OrderList;
import service.OrderListService;

public class OrderListServiceImpl implements OrderListService{
	private OrderListDao old=new OrderListDaoImpl();

	@Override
	public boolean add(OrderList orderList) {
		return old.add(orderList)>0;
	}

	@Override
	public boolean delete(int no) {
		return old.delete(no)>0;
	}

	@Override
	public boolean update(OrderList orderList) {
		return old.update(orderList)>0;
	}

	@Override
	public List<OrderList> findAll() {
		return old.findAll();
	}

	@Override
	public OrderList findById(int id) {
		return old.findById(id);
	}

	

}
